<?php

class About_us_model extends Model {

    function About_us_model()
    {
        parent::Model();
            $this->load->database();
    }

    function list_about_us()
    {
        $query = $this->db->get('AboutUs');
        
        return $query->result();

        // Formulate Query
        $query = sprintf("SELECT Description FROM AboutUs");

        // Perform Query
        $result = mysql_query($query);

        // Use result
        while ($row = mysql_fetch_assoc($result)) {
            echo $row['Description'];
        }

        // Free the resources associated with the result set
        // This is done automatically at the end of the script
        mysql_free_result($result);
    }
}
?>